7e0b6ec24637cf7dabadea50723bbed002383201,app/src/main/java/ca/rmen/android/scrumchatter/meeting/graph/MeetingsGraph.java,MeetingsGraph,populateMemberSpeakingTimeGraph,#Context#ViewGroup#Cursor#MeetingsGraphActivity.FabListener#,101

Before Change


        int i=0;
        for (Map.Entry<String, List<PointValue>> memberLine : memberLines.entrySet()) {
            Map<String,List<PointValue>> singleMemberData = new HashMap<>();
            singleMemberData.put(memberLine.getKey(), memberLine.getValue());
            String title = context.getString(R.string.chart_speaker_time_title, memberLine.getKey());
            createSpeakingTimeGraph(context, graphContainer, title, axisValues, singleMemberData, listener);
            i++;
            if (i > 3) break;

After Change


        int i = 0;
        String[] lineColors = context.getResources().getStringArray(R.array.chart_colors);
        for (Map.Entry<String, List<PointValue>> memberLine : memberLines.entrySet()) {
            Line line = new Line(memberLine.getValue());
            lines.add(line);
            String lineColorString = lineColors[i % lineColors.length];
            int lineColor = Color.parseColor(lineColorString);
            ValueShape shape = ValueShape.values()[i % ValueShape.values().length];
            line.setColor(lineColor);
            line.setShape(shape);
            addLegendEntry(context, legendView, memberLine.getKey(), lineColor, shape);
            i++;
        }
        legendView.getParent().requestLayout();